package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtAlarmEventDao;
import wqh.domain.DtAlarmEvent;
import wqh.service.DtAlarmEventService;

import java.util.List;
/**
 * Created by cfs on 2016/12/17.
 */
@Service("dtAlarmEventService")
public class DtAlarmEventServicelmpl implements DtAlarmEventService{
    @Autowired
    private  DtAlarmEventDao dtAlarmEventDao;

    public Integer selectCount(){
        return this.dtAlarmEventDao.selectCount();
    }

    public List<DtAlarmEvent> findAllRecord(){
        return this.dtAlarmEventDao.findAllRecord();
    }

    public DtAlarmEvent findById(Integer id){
        return this.dtAlarmEventDao.findById(id);
    }

    public List<DtAlarmEvent> findByTimeRange(Integer start,Integer end){
        return this.dtAlarmEventDao.findByTimeRange(start,end);
    }

    public int countByTimeRange(Integer start,Integer end){
        return this.dtAlarmEventDao.countByTimeRange(start,end);
    }

    public int deleteById(Integer id){
        return this.dtAlarmEventDao.deleteById(id);
    }

    public int insertRecord(DtAlarmEvent dtAlarmEvent){
        return this.dtAlarmEventDao.insertRecord(dtAlarmEvent);
    }
}
